package pl.vanta.utils.ejb.ejbqlb.parts;

import java.util.List;

import javax.persistence.EntityManager;

public abstract class AbstractEndPart<T> extends AbstractPart<T>
{
	public AbstractEndPart(AbstractPart<T> p)
	{
		super(p);
	}

	public List<T> LIST(EntityManager em)
	{
		return null;
	}

	public T SINGLE(EntityManager em)
	{
		return null;
	}

	public OrderBy<T> ORDER_BY_DESC(String name)
	{
		return new OrderBy<T>(this, name, "DESC");
	}

	public OrderBy<T> ORDER_BY_ASC(String name)
	{
		return new OrderBy<T>(this, name, "ASC");
	}

	public String TO_STRING()
	{
		return getPart();
	}
}